<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>文章目录</title>
</head>
<body>

<h1>文章：</h1>

<c:forEach items="${Index}" var="str" varStatus="s">

<form action="/display" method="post">
    ${s.count}. ${str}
    <input type="hidden" name="reqArticle" value = "${str}"><br>
    <input type="submit" value="查看"><br>
</form>

</c:forEach>

<td>
    <form action="/index.jsp" method="post">
        <input type="submit" value="返回主页">
    </form>
</td>

</body>
</html>
